//public class tezt1 {
////    public static void main(String[] args) {
////        Cat cat=Cat.getInstance();
////        System.out.println(cat);
////        Cat cat1=Cat.getInstance();
////        System.out.println(cat1);
////    }
//
//
//    public static void main(String[] args) {
//        Hexin hexin1= new Hexin("zc");
//        Hexin hexin2= new Hexin("zc");
//        System.out.println(hexin2);
//    }
//}
////class Cat{
////    private String name;
////    public static int n1=999;
////    private static Cat cat;
////
////    private Cat(String name) {
////        System.out.println("构造器调用...");
////        this.name = name;
////    }
////    public static Cat getInstance(){
////        if(cat==null){
////            return new Cat("小猫");
////        }
////        return cat;
////    }
//
////    @Override
////    public String toString() {
////        return "Cat{" +
////                "name='" + name + '\'' +
////                '}';
////    }
////}
//class Hexin{
//    private String name;
//
//    private static Hexin hexin=new Hexin("zc");
//
//    public static Hexin getHexin(){
//        return hexin ;
//    }
//    private Hexin() {
//
//    }
//
//    @Override
//    public String toString() {
//        return "Hexin{" +
//                "name='" + name + '\'' +
//                '}';
//    }
//}
public class tezt1 {
    public static void main(String[] args) {
        System.out.println(A.num);
    }
}
class A{
    public static  int num=10;

    static  {
        System.out.println("构造器被加载了");
    }
}
